package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsDataBatch;
import com.yidu.hbatsams.domain.AtsScheme;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AtsSchemeMapper {
    List<AtsScheme> selectAllFs(AtsScheme atsScheme);
    /**
     * 查询全部
     * @return List<AtsScheme>
     */
    List<AtsScheme> selectAll(AtsScheme atsScheme);

    /**
     * 查询总行数
     * @return 总行数
     */
    int selectAllCount(AtsScheme atsScheme);
    /**
     * 总行数
     * @param atsScheme
     * @return count
     */
//    Long count(AtsScheme atsScheme);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer schemeId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsScheme record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsScheme record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsScheme selectByPrimaryKey(Integer schemeId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsScheme record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsScheme record);

    /**
     * 修改方案显示
     * @param schemeId
     * @return int
     */
    int deleteScheme(Integer schemeId);

    int selectAllFsCount(AtsScheme atsScheme);

    List<AtsScheme> selectAuditAllFs(AtsScheme atsScheme);

    int selectAuditAllFsCount(AtsScheme atsScheme);

    List<AtsScheme> selectExpertAllFs(AtsScheme atsScheme);

    int selectExpertAllFsCount(AtsScheme atsScheme);

    List<AtsScheme> selectAthleteAllFs(AtsScheme atsScheme);

    int selectAthleteAllFsCount(AtsScheme atsScheme);

    List<AtsScheme> selectByPrimaryKeyAthlete(Map<String,Object> map);

    int selectByPrimaryKeyAthleteCount(Map<String,Object> map);
}